package com.woniu34.auth;

import com.woniu.common.core.redis.RedisCache;
import com.woniu.common.exception.GlobalExceptionHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

@SpringBootApplication
@EnableFeignClients(basePackages = {"com.woniu34.user.api"})//去哪个package中查找userApi
@Import({RedisCache.class,com.woniu.common.token.TokenServiceUtil.class, GlobalExceptionHandler.class})//把TokenServiceUtil引入到当前spring容器中
public class AuthApp {
    public static void main(String[] args) {
        SpringApplication.run(AuthApp.class,args);
    }
}
